package com.he.controller;

import com.he.pojo.Id;
import com.he.pojo.Ip;
import com.he.pojo.Traffic;
import com.he.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@Slf4j
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/quaryid")
    public List<Id> getId(){
        return userService.getId();
    }

    @RequestMapping("quaryip")
    public List<Ip> getIp(){
        return userService.getIp();
    }

    @RequestMapping("/quarytraffic")
    public List<Traffic> getTraffic(){
        return userService.getTraffic();
    }


}
